import { RouteRecordRaw } from "vue-router";

export const asyncRoutes: RouteRecordRaw[] = [
  {
    path: "/organizationChart",
    name: "OrganizationChart",
    redirect: "/organizationChart/departmentPersonnel",
    meta: {
      menuName: "组织架构",
      icon: "",
      keepAlive: true
    },
    children: [
      {
        path: "/organizationChart/departmentPersonnel",
        name: "DepartmentPersonnel",
        meta: {
          menuName: "部门人员",
          icon: "",
          keepAlive: true
        },
        component: {}
      },
      {
        path: "/organizationChart/roleAndPermission",
        name: "RoleAndPermission",
        meta: {
          menuName: "角色与权限",
          icon: "",
          keepAlive: true
        },
        component: {}
      }
    ]
  },
  {
    path: "/configCenter",
    name: "ConfigCenter",
    redirect: "/configCenter/dataDictManagement",
    meta: {
      menuName: "配置中心",
      icon: "",
      keepAlive: true
    },
    children: [
      {
        path: "/configCenter/dataDictManagement",
        name: "DataDictManagement",
        meta: {
          menuName: "数据字典",
          icon: "",
          keepAlive: true
        },
        component: {}
      },
      {
        path: "/configCenter/menuManagement",
        name: "MenuManagement",
        meta: {
          menuName: "菜单管理",
          icon: "",
          keepAlive: true
        },
        component: {}
      },
      {
        path: "/configCenter/dataOrigin",
        name: "DataOrigin",
        meta: {
          menuName: "数据源",
          icon: "",
          keepAlive: true
        },
        component: {}
      }
    ]
  },
  {
    path: "/tenantManagement",
    name: "TenantManagement",
    redirect: "/tenantManagement/menuManagement",
    meta: {
      menuName: "租户管理",
      icon: "",
      keepAlive: true
    },
    children: [
      {
        path: "/tenantManagement/tenantList",
        name: "TenantManagement",
        meta: {
          menuName: "租户",
          icon: "",
          keepAlive: true
        },
        component: {}
      },
      {
        path: "/tenantManagement/menuManagement",
        name: "TenementMenuManagement",
        meta: {
          menuName: "菜单管理",
          icon: "",
          keepAlive: true
        },
        component: {}
      }
    ]
  }
  // {
  //   path: "/about",
  //   name: "AboutView",
  //   meta: {
  //     menuName: "关于我们",
  //     icon: "",
  //     keepAlive: true
  //   },
  //   component: {}
  // }
  // {
  //   path: "/app-vue/",
  //   redirect: "/app-vue/appHome",
  //   name: "AppVue",
  //   meta: {
  //     menuName: "App应用",
  //     icon: "",
  //     keepAlive: false,
  //     microApp: true
  //   },
  //   children: [
  //     {
  //       path: "/app-vue/appHome",
  //       name: "AppVueHome",
  //       meta: {
  //         menuName: "App首页",
  //         icon: "",
  //         keepAlive: true,
  //         microApp: true
  //       },
  //       component: {}
  //     },
  //     {
  //       path: "/app-vue/appAbout",
  //       name: "AppVueAbout",
  //       meta: {
  //         menuName: "App关于",
  //         icon: "",
  //         keepAlive: true,
  //         microApp: true
  //       },
  //       component: {}
  //     }
  //   ]
  // },
  // {
  //   path: "/home-vue/",
  //   redirect: "/home-vue/appHome",
  //   name: "HomeVue",
  //   meta: {
  //     menuName: "Home应用",
  //     icon: "",
  //     keepAlive: false,
  //     microApp: true
  //   },
  //   children: [
  //     {
  //       path: "/home-vue/appHome",
  //       name: "HomeVueHome",
  //       meta: {
  //         menuName: "Home首页",
  //         icon: "",
  //         keepAlive: true,
  //         microApp: true
  //       },
  //       component: {}
  //     },
  //     {
  //       path: "/home-vue/appAbout",
  //       name: "HomeVueAbout",
  //       meta: {
  //         menuName: "Home关于",
  //         icon: "",
  //         keepAlive: true,
  //         microApp: true
  //       },
  //       component: {}
  //     }
  //   ]
  // }
];
